<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
		<link href="css/mui.picker.min.css" rel="stylesheet" />
		<link href="style/fjol_style.css" rel="stylesheet" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title">预约时间</h1>
		</header>
		<div class="mui-content">
		    <div id="showDtpicker" style="padding: 20px 20px;">
	        	请选择看房预约时间，系统将自动为您安排带看经纪人
		        <div class="mt10">
		        	<span>您的预约时间为：</span>
		        	<button type="button" class="mui-btn-green mui-btn-outlined" id="info">请选择时间</button>
		        </div>
		        <div class="mui-text-center mt10">
		        	<button type="button" class="mui-btn mui-btn-green mui-btn-block" id="ruturnAppoint">提交</button>
		        </div>
		    </div>
		</div>
	        
		<script src="js/mui.min.js"></script>
		<script src="js/mui.picker.min.js"></script>
		<script src="js/mui.dtpicker.js"></script>
		<script type="text/javascript">
			mui.init();
				document.querySelector('#info').addEventListener('tap',function(){
					var dtPicker = new mui.DtPicker();
					dtPicker.show(function(e){
						document.querySelector('#info').innerHTML = e.text;
					});
				})
				
			document.querySelector('#ruturnAppoint').addEventListener('tap',function(){
				if(document.querySelector('#info').innerHTML=='请选择时间'){
					mui.alert('您还没选择时间，请重新选择', '提示', function() {});
				}else{
					var parentPage = plus.webview.getWebviewById('house_detail');
					mui.fire(parentPage,'getAppointTime',{
						appointTime:document.querySelector('#info').innerHTML
					});
					mui.back();
				}
				
			});
		</script>
	</body>

</html>